package back_0417;

import busuanzi.util.Logs;
import sardine.Sardine;

/**
 * Auth: bruce-sha
 * Date: 2015/3/6
 */
public class LBSBoot {

    public static void main(String[] args) throws Exception {

        Sardine.get("/hello", (request, response) -> {
            return "hello" + System.currentTimeMillis();
        });

        int port = 9527;
        if (args.length != 0) port = Integer.parseInt(args[0]);

        final LBServer server = new LBServer();
        server.start(port);
        Logs.log("Http Server listening on %s ...", port);
    }

}
